using System;
using System.Threading.Tasks;

namespace Cz
{
    [CzService]
    public interface ICzTask : ICzBase
    {
        Task CreateTask(Action action, TaskCreationOptions options = TaskCreationOptions.None);
        Task<T> CreateTask<T>(Func<T> action, TaskCreationOptions options = TaskCreationOptions.None);
    }
}